package com.intelligent.health.base.export.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/27/17:28
 * @Description: 检查组导出实体类 ExportCheckGroupBean
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("exportCheckGroupBeans")
public class ExportCheckGroupBean {
    @Excel(name = "检查组编码", needMerge = true)
    private String code;

    @Excel(name = "检查组助记码", needMerge = true)
    private String helpCode;

    @Excel(name = "检查组名称", needMerge = true)
    private String name;

    @Excel(name = "注意事项", needMerge = true)
    private String attention;

    @Excel(name = "备注", needMerge = true)
    private String remark;

    @Excel(name = "是否有效", replace = {"有效_1", "无效_0"}, needMerge = true)
    private Integer state;

    @ExcelCollection(name = "检查项列表")
    private List<ExportCheckItemBean> exportCheckItemBeans;
}
